{OVERALL_HEADER}
<script language="JavaScript"> 
function openDir( form ) { 
	var newIndex = form.cats.selectedIndex; 
		url = form.cats.options[ newIndex ].value; 
		window.location.assign( url ); 
}
</script> 
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><p><br>      
         <span class="title1">{LANG_PROJECTSU}</span></p>
      <form name="form" method="post" action="">
        <span class="header1">View by Project Type</span><br><br>
        <select name="cats" onChange="openDir(this.form)">
          <option value="projects.php">{LANG_PROJTYPES}</option>
          <option value="projects.php">{LANG_ALL}</option>
		  {LOOP: CATEGORIES}
          IF("{CATEGORIES.ctype}"=="0"){<option value="{SITEURL}projects.php?cat={CATEGORIES.id}" {CATEGORIES.selected} >{CATEGORIES.name}</option>{:IF}
          IF("{CATEGORIES.ctype}"=="1"){<option value="{SITEURL}projects.php?cat={CATEGORIES.id}" {CATEGORIES.selected} >{CATEGORIES.name}</option>{:IF}
          IF("{CATEGORIES.ctype}"=="2"){<option value="{SITEURL}projects.php?cat={CATEGORIES.id}" {CATEGORIES.selected} >&nbsp;&nbsp;&nbsp;{CATEGORIES.name}</option>{:IF}
		  {/LOOP: CATEGORIES}
        </select>
      </form>      
      <table width="100%" cellpadding="0" cellspacing="1" border="0" class="table_titles">
        <tr bgcolor="#E1E1E1" align="center">
          <td width="40%" align="left" height="18" style="padding-left:5px;">{LANG_PROJNAME}</td>
          <td width="6%" bgcolor="#E1E1E1">{LANG_BIDS}</td>
          <td width="30%" align="left" style="padding-left:5px;">{LANG_JOBTYPE}</td>
          <td width="12%">{LANG_STARTED}</td>
          <td width="12%">{LANG_ENDS}</td>
        </tr>
  {LOOP: PROJECTS}
  <tr align="center">
    <td align="left" style="padding-left:5px;"><a href="{PROJECTS.link}">{PROJECTS.title}</a> IF("{PROJECTS.featured}"=="1"){&nbsp; <span class="featured">{LANG_FEATURED}</span>{:IF} IF("{PROJECTS.urgent}"=="1"){&nbsp; <span class="urgent">{LANG_URGENT}</span>{:IF}</td>
    <td>{PROJECTS.bids}</td>
    <td align="left" style="padding-left:5px;">{PROJECTS.types}</td>
    <td>{PROJECTS.startdate}</td>
    <td>{PROJECTS.enddate}</td>
  </tr>
  <tr>
    <Td colspan="5" background="templates/{TPL_NAME}/images/hline_dot.gif"><img src="templates/{TPL_NAME}/images/dot.gif" width="1" height="1" alt="" border="0"></TD>
  </tr>
  {/LOOP: PROJECTS}
  <tr>
    <td colspan="5"><br>
      <strong>{LANG_PAGES}:</strong> {LOOP: PAGES}<a href="{PAGES.link}">{PAGES.title}</a> {/LOOP: PAGES}<br><br></td>
  </tr>
      </table>
   </td>
  </tr>
</table>
{OVERALL_FOOTER}